import request from '@/utils/request'

export function addFile(data) {
  return request({
    url: '/houseFile',
    method: 'post',
    data
  })
}
export function update(data) {
  return request({
    url: '/houseFile',
    method: 'put',
    data
  })
}
export function remove(id) {
  return request({
    url: '/houseFile/' + id,
    method: 'delete'
  })
}
export function removeBX(id) {
  return request({
    url: '/houseInsurance/delete/' + id,
    method: 'delete'
  })
}

export function getHouseFileListByHouseId(id) {
  return request({
    url: '/houseFile/list/' + id,
    method: 'get',
    params: {}
  })
}
export function getHouseZY(id) {
  return request({
    url: '/house/qryProcessLease/' + id,
    method: 'get',
    params: {}
  })
}
export function getHouseSF(id) {
  return request({
    url: '/house/qryProcessSale/' + id,
    method: 'get',
    params: {}
  })
}
export function getHouseZD(id) {
  return request({
    url: '/house/qryHouseBill/' + id,
    method: 'get',
    params: {}
  })
}
export function getHouseBG(id) {
  return request({
    url: '/house/qryReport/' + id,
    method: 'get',
    params: {}
  })
}
export function getHouseWX(id) {
  return request({
    url: '/house/qryRepair/' + id,
    method: 'get',
    params: {}
  })
}
export function getHouseJF(id) {
  return request({
    url: '/house/qryHousePayment/' + id,
    method: 'get',
    params: {}
  })
}

export function getHouseBX(id) {
  return request({
    url: '/houseInsurance/list/' + id,
    method: 'get',
    params: {}
  })
}
export function saveBX(data) {
  return request({
    url: '/houseInsurance',
    method: 'post',
    data
  })
}









